<?php
/**
 * The template for displaying home pages.
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages
 * and that other 'pages' on your WordPress site will use a
 * different template.
 *
 * @package WordPress
 * @subpackage Twenty_Ten
 * @since Twenty Ten 1.0
 */

get_header(); ?>

		<div id="homepage">
			<div id="content" role="main">

			<?php
			 // Load homepage feature 
             include (TEMPLATEPATH . '/homepage/feature.php');
			?>

			</div><!-- #content -->
		</div><!-- #container -->

<?php
	 
	if ( is_active_sidebar( 'right-homepage-widget-area' ) ) : ?>

		<div id="right-homepage" class="widget-area" role="complementary">
			<ul class="oxox">
				<?php dynamic_sidebar( 'right-homepage-widget-area' ); ?>
			</ul>
		</div><!-- #secondary .widget-area -->

<?php endif; ?>

<?php			
        // Load homepage the most viewed
         include (TEMPLATEPATH . '/homepage/featureProducts.php');		
?>

<?php get_footer(); ?>
